/**
 * 
 */
package com.auxgroup.hr.front.commons.security;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * @author ye.meng@ssitsh.com
 *
 * @since 1.0.0 create date 2017年10月16日
 */
public class OAuthToken implements AuthenticationToken {

	private static final long serialVersionUID = 1L;
	private String authorization;
	
	
	/**
	 * @param authorization
	 */
	public OAuthToken(String authorization) {
		super();
		this.authorization = authorization;
	}

	/* (non-Javadoc)
	 * @see org.apache.shiro.authc.AuthenticationToken#getPrincipal()
	 */
	@Override
	public Object getPrincipal() {
		return authorization;
	}

	/* (non-Javadoc)
	 * @see org.apache.shiro.authc.AuthenticationToken#getCredentials()
	 */
	@Override
	public Object getCredentials() {
		return "";
	}

}
